package com.woniuxy.lrz.carlproject.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 订单详情表
 * </p>
 *
 * @author lrz
 * @since 2022-09-28
 */
@TableName("order_info")
@ApiModel(value = "OrderInfo对象", description = "订单详情表")
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "order_info_id", type = IdType.AUTO)
    private Integer orderInfoId;

    @ApiModelProperty("关联商品skuid")
    private Integer skuId;

    @ApiModelProperty("关联用户订单id")
    private Integer userOrderId;

    @ApiModelProperty("商品数量表")
    private Integer goodCount;

    @ApiModelProperty("商品名称")
    private String goodName;

    @ApiModelProperty("商品单价")
    private BigDecimal skuPrice;

    @ApiModelProperty("商品图片")
    private String goodPhoto;

    public Integer getOrderInfoId() {
        return orderInfoId;
    }

    public void setOrderInfoId(Integer orderInfoId) {
        this.orderInfoId = orderInfoId;
    }

    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }

    public Integer getUserOrderId() {
        return userOrderId;
    }

    public void setUserOrderId(Integer userOrderId) {
        this.userOrderId = userOrderId;
    }

    public Integer getGoodCount() {
        return goodCount;
    }

    public void setGoodCount(Integer goodCount) {
        this.goodCount = goodCount;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public BigDecimal getskuPrice() {
        return skuPrice;
    }

    public void setskuPrice(BigDecimal skuPrice) {
        this.skuPrice = skuPrice;
    }

    public String getGoodPhoto() {
        return goodPhoto;
    }

    public void setGoodPhoto(String goodPhoto) {
        this.goodPhoto = goodPhoto;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
        "orderInfoId = " + orderInfoId +
        ", skuId = " + skuId +
        ", userOrderId = " + userOrderId +
        ", goodCount = " + goodCount +
        ", goodName = " + goodName +
        ", skuPrice = " + skuPrice +
        ", goodPhoto = " + goodPhoto +
        "}";
    }
}
